home *** CD-ROM | disk | FTP | other *** search
- /*
- * Generated by upf-idl C++ backend (upf ABI version: 2)
- * Do not edit by hand!
- */
-
- #ifndef _UPF_IDL_OPENVIP_IIMAGESAVER_IDL_H_
- #define _UPF_IDL_OPENVIP_IIMAGESAVER_IDL_H_
-
- #include <upf/cxx.h>
-
- #if UPF_ABI_VERSION != 2
- #error "Headers generated for upf ABI different from the one you have installed, please regenerate them."
- #endif
-
-
- #include "openvip/defs.h"
- #include <upf/coretypes.h>
- #include <upf/IObject.h>
- #include <openvip/IDataFragment.h>
- #include <openvip/IVideoFrame.h>
- namespace openvip
- {
- class IImageSaver : virtual public ::upf::IObject
- {
- public:
-
- virtual bool SaveImage(IVideoFrame* img, const ::std::string& filename) = 0;
- };
- }
- #include <upf/cxx_ptr.h>
- namespace upf {
- inline void __upf_dispatch__openvip_IImageSaver_SaveImage(::openvip::IImageSaver *_upf_data, upf_Arguments *_upf_marchalled_args)
- {
- upf::Arguments _upf_args(_upf_marchalled_args);
- ::upf::Ptr< ::openvip::IVideoFrame > img;
- ::std::string filename;
- _upf_args.seek0();
- _upf_args >> img;
- _upf_args >> filename;
- bool _upf_retval(_upf_data->SaveImage(img, filename));
- _upf_args.seek0();
- _upf_args << _upf_retval;
- _upf_args.seek0();
- }
-
-
- template<> struct InterfaceTraits< ::openvip::IImageSaver >
- {
- typedef ::openvip::IImageSaver value_type;
-
- static void _UPF_CALLING_CONVENTION dispatchFunction(void *obj, upf_MethodID method, upf_Arguments *args)
- {
- ::openvip::IImageSaver *ptr = static_cast< ::openvip::IImageSaver* >(obj);
- if (method < (0 + __UPF_UPF_IOBJECT_OPCNT))
- {
- InterfaceTraits< ::upf::IObject >::dispatchFunction(static_cast< ::upf::IObject* >(ptr),
- method - (0), args);
- }
- else
- {
- static void (*functions[])(::openvip::IImageSaver *, upf_Arguments *) = {
- __upf_dispatch__openvip_IImageSaver_SaveImage,
- NULL };
- functions[method - (0 + __UPF_UPF_IOBJECT_OPCNT)](ptr, args);
- }
- }
-
- static const char* implName()
- { return "openvip.ImageSaver"; }
-
- static const char* name()
- { return "openvip.IImageSaver"; }
-
- static const IID& iid()
- {
- static IID _iid = {0x28604acd,0x599f36a5,0x93f608c3,0xfa4d62b0,1,0};
- return _iid;
- }
-
- static const upf_uint8_t *typereg()
- {
- static const upf_uint8_t desc[] = {
- 0,0,0,130,0,0,19,111,112,101,110,118,105,112,46,73,73,109,97,103,
- 101,83,97,118,101,114,40,96,74,205,89,159,54,165,147,246,8,195,250,77,
- 98,176,0,1,0,0,0,1,0,11,117,112,102,46,73,79,98,106,101,99,
- 116,0,1,0,9,83,97,118,101,73,109,97,103,101,0,7,98,111,111,108,
- 101,97,110,0,2,0,19,111,112,101,110,118,105,112,46,73,86,105,100,101,
- 111,70,114,97,109,101,0,3,105,109,103,1,0,0,6,115,116,114,105,110,
- 103,0,8,102,105,108,101,110,97,109,101,1,0,1,0,0,0,155,0,0,
- 11,117,112,102,46,73,79,98,106,101,99,116,129,91,66,15,214,207,225,124,
- 112,91,189,235,231,44,230,242,0,1,0,0,0,0,0,4,0,6,105,110,
- 99,82,101,102,0,4,118,111,105,100,0,0,0,6,100,101,99,82,101,102,
- 0,4,118,111,105,100,0,0,0,14,113,117,101,114,121,73,110,116,101,114,
- 102,97,99,101,0,16,117,112,102,46,73,110,116,101,114,102,97,99,101,80,
- 116,114,0,1,0,7,117,112,102,46,73,73,68,0,12,105,110,116,101,114,
- 102,97,99,101,95,105,100,1,0,0,10,103,101,116,67,108,97,115,115,73,
- 68,0,7,117,112,102,46,67,73,68,0,0,0,0,0,0,10,2,0,7,
- 117,112,102,46,73,73,68,0,0,0,19,2,0,16,117,112,102,46,73,110,
- 116,101,114,102,97,99,101,80,116,114,0,0,0,26,1,0,7,117,112,102,
- 46,67,73,68,2,0,13,117,110,115,105,103,110,101,100,32,108,111,110,103,
- 0,0,2,48,0,0,19,111,112,101,110,118,105,112,46,73,86,105,100,101,
- 111,70,114,97,109,101,124,132,38,40,49,117,66,138,85,67,36,99,98,101,
- 216,67,0,1,0,0,0,1,0,21,111,112,101,110,118,105,112,46,73,68,
- 97,116,97,70,114,97,103,109,101,110,116,0,11,0,6,67,114,101,97,116,
- 101,0,4,118,111,105,100,0,3,0,13,117,110,115,105,103,110,101,100,32,
- 108,111,110,103,0,5,119,105,100,116,104,1,0,0,13,117,110,115,105,103,
- 110,101,100,32,108,111,110,103,0,6,104,101,105,103,104,116,1,0,0,19,
- 111,112,101,110,118,105,112,46,86,105,100,101,111,70,111,114,109,97,116,0,
- 6,102,111,114,109,97,116,1,0,0,8,71,101,116,87,105,100,116,104,0,
- 13,117,110,115,105,103,110,101,100,32,108,111,110,103,0,0,0,9,71,101,
- 116,72,101,105,103,104,116,0,13,117,110,115,105,103,110,101,100,32,108,111,
- 110,103,0,0,0,10,71,101,116,70,111,114,109,97,116,115,0,19,111,112,
- 101,110,118,105,112,46,86,105,100,101,111,70,111,114,109,97,116,0,0,0,
- 7,71,101,116,68,97,116,97,0,18,111,112,101,110,118,105,112,46,80,105,
- 120,101,108,66,117,102,82,79,0,1,0,19,111,112,101,110,118,105,112,46,
- 86,105,100,101,111,70,111,114,109,97,116,0,6,102,111,114,109,97,116,1,
- 0,0,8,71,101,116,87,68,97,116,97,0,18,111,112,101,110,118,105,112,
- 46,80,105,120,101,108,66,117,102,82,87,0,1,0,19,111,112,101,110,118,
- 105,112,46,86,105,100,101,111,70,111,114,109,97,116,0,6,102,111,114,109,
- 97,116,1,0,0,4,76,111,99,107,0,4,118,111,105,100,0,0,0,6,
- 85,110,108,111,99,107,0,4,118,111,105,100,0,0,0,8,73,115,76,111,
- 99,107,101,100,0,7,98,111,111,108,101,97,110,0,0,0,8,71,101,116,
- 87,67,111,112,121,0,19,111,112,101,110,118,105,112,46,73,86,105,100,101,
- 111,70,114,97,109,101,0,1,0,19,111,112,101,110,118,105,112,46,86,105,
- 100,101,111,70,111,114,109,97,116,0,6,102,111,114,109,97,116,1,0,0,
- 8,77,97,107,101,67,111,112,121,0,19,111,112,101,110,118,105,112,46,73,
- 86,105,100,101,111,70,114,97,109,101,0,1,0,19,111,112,101,110,118,105,
- 112,46,86,105,100,101,111,70,111,114,109,97,116,0,6,102,111,114,109,97,
- 116,1,0,0,0,0,0,62,0,0,21,111,112,101,110,118,105,112,46,73,
- 68,97,116,97,70,114,97,103,109,101,110,116,176,174,237,235,90,202,68,174,
- 144,162,3,200,168,195,7,36,0,1,0,0,0,1,0,11,117,112,102,46,
- 73,79,98,106,101,99,116,0,0,0,0,0,0,38,1,0,19,111,112,101,
- 110,118,105,112,46,86,105,100,101,111,70,111,114,109,97,116,2,0,13,117,
- 110,115,105,103,110,101,100,32,108,111,110,103,0,0,0,21,2,0,18,111,
- 112,101,110,118,105,112,46,80,105,120,101,108,66,117,102,82,79,0,0,0,
- 21,2,0,18,111,112,101,110,118,105,112,46,80,105,120,101,108,66,117,102,
- 82,87,0,0,0,0 };
- return desc;
- }
-
- static bool query(value_type *instance, MultiPurposeHookArgs *data)
- {
- if (data->mode == _UPF_HOOK_MODE_QUERY_INTERFACE)
- {
- if (upf::checkIID(*(data->u.qi.iid), iid()))
- {
- data->u.qi.retval.data = instance;
- data->u.qi.retval.function = dispatchFunction;
- return true;
- }
- }
- else if (data->mode == _UPF_HOOK_MODE_INIT_CLASSINFO)
- {
- upf_middleware->funcs.merge_typeinfo(typereg());
- data->u.ici.ciWrapper->addInterface(iid());
- }
- if (InterfaceTraits< ::upf::IObject >::query(instance, data)) return true;
- return false;
- }
- };
-
- template<class Base, int Offset>
- class _ProxyCode_OPENVIP_IIMAGESAVER : public _ProxyCode_UPF_IOBJECT< Base, 0 >
- {
- virtual bool SaveImage(::openvip::IVideoFrame* img, const ::std::string& filename)
- {
- ArgumentsOwned _upf_args;
- _upf_args << img;
- _upf_args << filename;
- m_dispatch.function(m_dispatch.data, Offset+0+0+__UPF_UPF_IOBJECT_OPCNT, _upf_args.getMarchalled());
- bool _upf_retval;
- _upf_args >> _upf_retval;
- return _upf_retval;
- }
- };
- #define __UPF_OPENVIP_IIMAGESAVER_OPCNT ((0+__UPF_UPF_IOBJECT_OPCNT)+(1))
- template<> class Proxy< ::openvip::IImageSaver > :
- public _ProxyCode_OPENVIP_IIMAGESAVER< _ProxyBase< ::openvip::IImageSaver >, 0 >
- {
- public:
- Proxy(upf_Object *object, const upf_InterfaceData& dispatch)
- {
- init_proxy(object, dispatch);
- }
- virtual ~Proxy() {}
- };
-
- } // namespace upf
-
- #endif
-